package com.example.wei.mvp.contract;

import com.trello.rxlifecycle2.LifecycleTransformer;

/**
 * Created by Administrator on 2017/5/3.
 */

public interface BaseContract {
  interface  BaesPresenter<T>{
      void attachView(T view);

      void detachView();
  }
    interface BaseView{
        void showError(String err);
        /**
         * 绑定生命周期
         *
         * @param <T1>
         * @return
         */
        <T1> LifecycleTransformer<T1> bindToLife();
        void complete();
    }
}
